export const statList = [
  {
    type: 'totalIncome',
    title: '总收入',
    amount: '0.00'
  },
  {
    type: 'totalWithdrawal',
    title: '累计提现',
    amount: '0.00'
  },
  {
    type: 'balance',
    title: '账户余额',
    amount: '0.00'
  },
  {
    type: 'todayIncome',
    title: '今日收入',
    amount: '0.00'
  },
  {
    type: 'expandSubFreeze',
    title: '冻结收徒金额',
    amount: '0.00'
  },

  {
    type: 'withdrawable',
    title: '可提现',
    amount: '0.00'
  }
]

export const shareTableHeadList = [
  {
    title: '时间',
    flex: 2
  },
  {
    title: '文章',
    flex: 3
  },
  {
    title: '收入',
    flex: 1
  }
]

export const recruitFCTableHeadList = [
  {
    title: '徒弟',
    flex: 2
  },
  {
    title: '文章',
    flex: 2
  },
  {
    title: '收入',
    flex: 1
  }
]

export const recruitTableHeadList = [
	{
	  title: '时间',
	  flex: 2
	},
  {
    title: '徒弟',
    flex: 2
  },
  {
    title: '奖励金额',
    flex: 1
  },
  {
    title: '状态',
    flex: 1
  }
]

export const otherTableHeadList = [
  {
    title: '时间',
    flex: 3
  },
  {
    title: '内容',
    flex: 4
  },
  {
    title: '奖励金额',
    flex: 3
  }
]

export function addStatToList (list = [], stat = {}) {
  list.map((item, index) => {
    item.amount = stat[item.type]
  })

  return list
}
